package com.lds.config.center.server.mcp.model;

import lombok.Data;

import java.util.Collections;
import java.util.List;
import java.util.Map;

@Data
public class ToolCallResult {
    private List<ContentItem> content;
    private Boolean isError = false;
    private Map<String, Object> additionalProperties;

    public ToolCallResult(ContentItem contentItem) {
        this.content = Collections.singletonList(contentItem);
    }

    public ToolCallResult(List<ContentItem> content) {
        this.content = content;
    }

    @Data
    public static class ContentItem {
        private final String type = "text";
        private String text;

        public ContentItem(String text) {
            this.text = text;
        }
    }
}
